import request from "../axios";

// 获取收藏数据
export const findCollect = ({ page = 1, pageSize = 10, collectType = 1 }) => {
  return request({
    url: "/member/collect",
    method: "get",
    data: { page, pageSize, collectType },
    mock: false
  });
}

// 获取我的足迹
export const findHistory = ({ page = 1, pageSize = 10 }) => {
  return request({
    url: "/member/browseHistory",
    method: "get",
    data: { page, pageSize },
    mock: false
  });
}

// 删除我的足迹
export const deleteHistory = ({ ids, dataType = 4 }) => {
  return request({
    url: "/member/browseHistory/batch",
    method: "delete",
    data: {
      ids,
      dataType
    },
    mock: false
  });
}